# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-dbi-shell
pkgver=11.97
pkgrel=3
pkgdesc="Perl/CPAN Module DBI::Shell"
arch=("any")
url="https://search.cpan.org/dist/DBI-Shell"
license=("GPL" "PerlArtistic")
makedepends=("perl-text-reform" "perl-io-tee")
depends=("perl-text-reform" "perl-io-tee")
source=("https://www.cpan.org/authors/id/D/DL/DLAMBLEY/DBI-Shell-$pkgver.tar.gz")
sha256sums=('e9fece4b691bb8d096a5cbeb3f70c72df3ae70999125ca51fb09175095e5e68d')

build() {
  cd "$srcdir"/DBI-Shell-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/DBI-Shell-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
